package com.briup.jz.service;

import com.briup.jz.bean.Article;


import com.briup.jz.bean.extend.ArticleExtend;
import com.briup.jz.utils.CustomerException;

import java.util.List;

public interface IArticleService  {


    //增加和更新
    void save(Article article) throws CustomerException;



    //使用多对一的方式级联查询
    List<ArticleExtend> queryCatogory(String title,String status,Long categoryId);




    //查询
    List<Article> query(String title);

    //删除
    void deleteById(long id) throws CustomerException;

    //使用一对多的方式级联查询
    ArticleExtend read(Long id);
}
